﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/AdminMasterPage.master" Inherits="System.Web.Mvc.ViewPage<easyccms.WebUI.Areas.Administrator.Models.MenuItemModel>" %>
<%@ Import Namespace="easyccms.General.HtmlHelpers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div id="main-content">
        <div class="title title-spacing">
            <h2>
                Add menu item</h2>
            Adding items into main menus.
        </div>
        
        <% 
            Html.EnableClientValidation();
            using (Html.BeginForm()){
            
                  
        %>
      <%= Html.ValidationSummary()%>
      
        <%= Html.HiddenFor(model=>model.MenuItem.MenuItemId) %>
        <ul>
            <%= Html.CcDropDownFor(model => model.MenuItem.Menu.MenuId, Model.Menus, "desc", new { @class = "field select large" })%>
            <%= Html.CcTextBoxFor(model => Model.MenuItem.Name, "desc", new { @class = "field text large" })%>
            <%= Html.CcTextBoxFor(model => Model.MenuItem.ExternalUrl, "desc", new { @class = "field text large" })%>
            <%= Html.CcTextBoxFor(model => Model.MenuItem.ItemOrder, "desc", new { @class = "field text large" })%>            
          
            <li class="buttons">
                <input type="submit" class="submit" value="Submit" />
            </li>
        </ul>
        <% }
        %>
        <div class="clearfix">
        </div>        
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JavaScriptHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
</asp:Content>

